/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { ResponseItem, responseSuccess } from '../utils';
import Mock from 'mockjs';

export default {
  'POST /jdk/delivery/accountSftcList': (req: Request, res: Response) => {
    const data = Mock.mock([
      {
        shop_name: '@cname',
        location: '@city',
        auth_id: '@id',
        open_id: '@id',
        'is_close|1': ['0', '1'],
      },
    ]);

    let result: ResponseItem = {
      code: 0,
      msg: '成功',
      data,
    };
    return res.json(result);
  },
  'POST /jdk/delivery/setSftcCreateShop': (req: Request, res: Response) =>
    responseSuccess(req, res),
};
